package service;

import org.apache.ibatis.annotations.Param;
import pojo.Supplier;

import java.util.List;

public interface SupplierService {
    List<Supplier> selectAllSuppliersByName(String supplierName);
    boolean add(Supplier supplier);

    boolean delete(int id);

    boolean update(Supplier supplier);

    List<Supplier> selectPages(@Param("code")String code,@Param("name")String name,
                               @Param("pageIndex") int pageIndex,@Param("pageSize") int pageSize);

    int selectCount(@Param("code")String code, @Param("name")String name);

    Supplier selectById(Integer id);

    List<Supplier> selectAllSuppliers();
}
